@extends('admin.layout.layout', ['row' => @$page])

@section('title', @$page['title'])

@section('contain')

    <div class="portlet">
        <div class="portlet-title">
            <div class="caption">
                <x-portlet-breadcrumb :page="$page"></x-portlet-breadcrumb>
            </div>
            <div class="actions">
                <div class="item">
                </div>
            </div>
        </div>

        <div>
            <form action="./" method="post" onsubmit="return checkVal(this)">
                @csrf
                @method('PUT')
                <input type="text" name="_previous_" value="{{ request()->header('referer') }}" hidden>
                <div class="form-item form-s1">
                    <div class="form-label" required>{{ ts('ENGLISHSIGN') }}</div>
                    <div class="form-input">
                        <input type="text" class="form-control" name="english_sign" value="{{ $data->english_sign ?? '' }}">
                    </div>
                </div>
                <div class="form-item form-s1">
                    <div class="form-label" required>{{ ts('CHINESETSIGN') }}</div>
                    <div class="form-input">
                        <input type="text" class="form-control" name="traditional_chinese_sign" value="{{ $data->traditional_chinese_sign ?? '' }}">
                    </div>
                </div>
                <div class="form-item form-s1">
                    <div class="form-label" required>{{ ts('CHINESESSIGN') }}</div>
                    <div class="form-input">
                        <input type="text" class="form-control" name="simplified_chinese_sign" value="{{ $data->simplified_chinese_sign ?? ''}}">
                    </div>
                </div>
                <div class="form-item form-s1">
                    <div class="form-label" required>{{ ts('ENGLISHCONTENT') }}</div>
                    <div class="form-input">
                        <textarea class="form-control" style="height: 120px;" name="english_content" value="">{{ $data->english_content ?? ''}}</textarea>
                    </div>
                </div>
                <div class="form-item form-s1">
                    <div class="form-label" required>{{ ts('CHINESETCONTENT') }}</div>
                    <div class="form-input">
                        <textarea class="form-control" style="height: 120px;" name="traditional_chinese_content" value="">{{ $data->traditional_chinese_content ?? '' }}</textarea>
                    </div>
                </div>
                <div class="form-item form-s1">
                    <div class="form-label" required>{{ ts('CHINESESCONTENT') }}</div>
                    <div class="form-input">
                        <textarea class="form-control" style="height: 120px;" name="simplified_chinese_content" value="">{{ $data->simplified_chinese_content ?? '' }}</textarea>
                    </div>
                </div>
                <div class="mt-4 mx-3">
                    <button class="btn btn-primary">{{ ts('UPDATE') }}</button>
                </div>
            </form>
        </div>

    </div>

@endsection
